This function retrieves the name, data type, and number of values of the attribute for the HDF data object identified by the parameter obj_id.
Result = HDF_GR_ATTRINFO(obj_id, attr_index, name, data_type, count)
Returns SUCCEED (0) if successful or FAIL (-1) otherwise.
Raster image identifier (ri_id), returned by HDF_GR_CREATE or HDF_GR_SELECT, or HDF GR interface identifier (gr_id), returned by HDF_GR_START.
Index of the attribute. The value of this parameter can be obtained using HDF_GR_FINDATTR, HDF_GR_NAMETOINDEX or HDF_GR_REFTOINDEX, depending on available information. Valid values range from 0 to the total number of attributes attached to the object minus 1. The total number of attributes attached to the file can be obtained using the routine HDF_GR_FILEINFO. The total number of attributes attached to an image can be obtained using the routine HDF_GR_GETIMINFO.
A named variable in which the name of the attribute is returned.
A named variable in which the attribute data type is returned.
A named variable in which the number of attributes is returned.
None
4.0 |
Introduced |